import { createRouter, createWebHistory } from 'vue-router'

const router = createRouter({
  history: createWebHistory(import.meta.env.BASE_URL),
  routes: [
    {
      path: '/',
      name: 'home',
      redirect: '/compa',
    },
    {
      path: '/compa',
      component: () => import('../views/CompA.vue'),
    },
    {
      path: '/compb',
      component: () => import('../views/CompB.vue'),
    },
    {
      path: '/compc',
      component: () => import('../views/CompC.vue'),
    },
    {
      path: '/compd',
      component: () => import('../views/CompD.vue'),
    },
    {
      path: '/compe',
      component: () => import('../views/CompE.vue'),
    }
  ],
})

export default router
